package com.zx._10_设计模式._0_综合案例.奖励的发放策略;

public class Main {

    public static void main(String[] args) {
        // 手动触发单例的创建过程。也可以使用spring进行管理
        Waimai.getInstance();
        Food.getInstance();
        Hotel.getInstance();



        Strategy strategy1 = StrategyContext.getStrategy(RewardType.Strategy1.name());
        strategy1.issue();

        Strategy strategy2 = StrategyContext.getStrategy(RewardType.Strategy2.name());
        strategy2.issue();

        Strategy strategy3 = StrategyContext.getStrategy(RewardType.Strategy3.name());
        strategy3.issue();

    }
}
